{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "('惊天营救', '7.1')\n",
      "('绅士们', '8.3')\n",
      "('悲惨世界', '8.1')\n",
      "('温蒂妮', '7.5')\n",
      "('从不，很少，有时，总是', '7.6')\n",
      "('列夫·朗道：娜塔莎', '6.4')\n",
      "('饥饿站台', '7.8')\n",
      "('标准之外', '8.3')\n",
      "('燃烧女子的肖像', '8.6')\n",
      "('1/2的魔法', '7.9')\n"
     ]
    }
   ],
   "source": [
    "import requests\n",
    "import re\n",
    "import pymysql\n",
    "class connsql():\n",
    "    def __init__(self):\n",
    "        self.conn=pymysql.connect(host='127.0.0.1',user='root',password='1234',database='myschool',charset='gbk')\n",
    "url='https://movie.douban.com/chart'\n",
    "header={\n",
    "    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3722.400 QQBrowser/10.5.3751.400'\n",
    "}\n",
    "res=requests.get(url=url,headers=header)\n",
    "res.encoding='utf-8'\n",
    "conn=connsql()\n",
    "cursor=conn.conn.cursor()\n",
    "\n",
    "html=res.text\n",
    "res=re.findall('<a.*?title=\"(.*?)\">.*?class=\"rating_nums\">(.*?)</span>',html,re.S)\n",
    "for res in  res:\n",
    "    print(res)\n",
    "    \n",
    "    sql='insert student(name,classhour) values(\"%s\",\"%s\")'%(res[0],res[1])\n",
    "    res=cursor.execute(sql)\n",
    "    conn.conn.commit()\n",
    "conn.conn.close()\n",
    "cursor.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<!DOCTYPE html>\n",
      "<html lang=\"zh-CN\" class=\"ua-windows ua-webkit\">\n",
      "<head>\n",
      "    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n",
      "    <meta name=\"renderer\" content=\"webkit\">\n",
      "    <meta name=\"referrer\" content=\"always\">\n",
      "    <meta name=\"google-site-verification\" content=\"ok0wCgT20tBBgo9_zat2iAcimtN4Ftf5ccsh092Xeyw\" />\n",
      "    <title>\n",
      "豆瓣电影排行榜\n",
      "</title>\n",
      "    \n",
      "    <meta name=\"baidu-site-verification\" content=\"cZdR4xxR7RxmM4zE\" />\n",
      "    <meta http-equiv=\"Pragma\" content=\"no-cache\">\n",
      "    <meta http-equiv=\"Expires\" content=\"Sun, 6 Mar 2005 01:00:00 GMT\">\n",
      "    \n",
      "    <meta name=\"keywords\" content=\"电影排行榜、新片排行榜、豆瓣电影250\"/>\n",
      "    <meta name=\"description\" content=\"豆瓣电影排行榜,提供最新电影排行榜、本周电影口碑榜和豆瓣电影TOP250\" />\n",
      "\n",
      "    <link rel=\"apple-touch-icon\" href=\"https://img3.doubanio.com/f/movie/d59b2715fdea4968a450ee5f6c95c7d7a2030065/pics/movie/apple-touch-icon.png\">\n",
      "    <link href=\"https://img3.doubanio.com/f/shire/3e5dfc68b0f376484c50cf08a58bbca3700911dc/css/douban.css\" rel=\"stylesheet\" type=\"text/css\">\n",
      "    <link href=\"https://img3.doubanio.com/f/shire/ae3f5a3e3085968370b1fc63afcecb22d3284848/css/separation/_all.css\" rel=\"stylesheet\" type=\"text/css\">\n",
      "    <link href=\"https://img3.doubanio.com/f/movie/8864d3756094f5272d3c93e30ee2e324665855b0/css/movie/base/init.css\" rel=\"stylesheet\">\n",
      "    <script type=\"text/javascript\">var _head_start = new Date();</script>\n",
      "    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/movie/0495cb173e298c28593766009c7b0a953246c5b5/js/movie/lib/jquery.js\"></script>\n",
      "    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/5ecaf46d6954d5a30bc7d99be86ae34031646e00/js/douban.js\"></script>\n",
      "    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/0efdc63b77f895eaf85281fb0e44d435c6239a3f/js/separation/_all.js\"></script>\n",
      "    \n",
      "    <style type=\"text/css\"></style>\n",
      "    <style type=\"text/css\">img { max-width: 100%; }</style>\n",
      "    <script type=\"text/javascript\"></script>\n",
      "    <link rel=\"stylesheet\" href=\"https://img3.doubanio.com/misc/mixed_static/7014746226b5bef9.css\">\n",
      "\n",
      "    <link rel=\"shortcut icon\" href=\"https://img3.doubanio.com/favicon.ico\" type=\"image/x-icon\">\n",
      "</head>\n",
      "\n",
      "<body>\n",
      "  \n",
      "    <script type=\"text/javascript\">var _body_start = new Date();</script>\n",
      "\n",
      "    \n",
      "    \n",
      "\n",
      "\n",
      "\n",
      "    <link href=\"//img3.doubanio.com/dae/accounts/resources/1f8d15e/shire/bundle.css\" rel=\"stylesheet\" type=\"text/css\">\n",
      "\n",
      "\n",
      "\n",
      "<div id=\"db-global-nav\" class=\"global-nav\">\n",
      "  <div class=\"bd\">\n",
      "    \n",
      "<div class=\"top-nav-info\">\n",
      "  <a href=\"https://accounts.douban.com/passport/login?source=movie\" class=\"nav-login\" rel=\"nofollow\">登录/注册</a>\n",
      "</div>\n",
      "\n",
      "\n",
      "    <div class=\"top-nav-doubanapp\">\n",
      "  <a href=\"https://www.douban.com/doubanapp/app?channel=top-nav\" class=\"lnk-doubanapp\">下载豆瓣客户端</a>\n",
      "  <div id=\"doubanapp-tip\">\n",
      "    <a href=\"https://www.douban.com/doubanapp/app?channel=qipao\" class=\"tip-link\">豆瓣 <span class=\"version\">6.0</span> 全新发布</a>\n",
      "    <a href=\"javascript: void 0;\" class=\"tip-close\">×</a>\n",
      "  </div>\n",
      "  <div id=\"top-nav-appintro\" class=\"more-items\">\n",
      "    <p class=\"appintro-title\">豆瓣</p>\n",
      "    <p class=\"qrcode\">扫码直接下载</p>\n",
      "    <div class=\"download\">\n",
      "      <a href=\"https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=iOS\">iPhone</a>\n",
      "      <span>·</span>\n",
      "      <a href=\"https://www.douban.com/doubanapp/redirect?channel=top-nav&direct_dl=1&download=Android\" class=\"download-android\">Android</a>\n",
      "    </div>\n",
      "  </div>\n",
      "</div>\n",
      "\n",
      "    \n",
      "\n",
      "\n",
      "<div class=\"global-nav-items\">\n",
      "  <ul>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://www.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-main&quot;,&quot;uid&quot;:&quot;0&quot;}\">豆瓣</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://book.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-book&quot;,&quot;uid&quot;:&quot;0&quot;}\">读书</a>\n",
      "    </li>\n",
      "    <li class=\"on\">\n",
      "      <a href=\"https://movie.douban.com\"  data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-movie&quot;,&quot;uid&quot;:&quot;0&quot;}\">电影</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://music.douban.com\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-music&quot;,&quot;uid&quot;:&quot;0&quot;}\">音乐</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://www.douban.com/location\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-location&quot;,&quot;uid&quot;:&quot;0&quot;}\">同城</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://www.douban.com/group\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-group&quot;,&quot;uid&quot;:&quot;0&quot;}\">小组</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://read.douban.com&#47;?dcs=top-nav&amp;dcm=douban\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-read&quot;,&quot;uid&quot;:&quot;0&quot;}\">阅读</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://douban.fm&#47;?from_=shire_top_nav\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-fm&quot;,&quot;uid&quot;:&quot;0&quot;}\">FM</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://time.douban.com&#47;?dt_time_source=douban-web_top_nav\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-time&quot;,&quot;uid&quot;:&quot;0&quot;}\">时间</a>\n",
      "    </li>\n",
      "    <li class=\"\">\n",
      "      <a href=\"https://market.douban.com&#47;?utm_campaign=douban_top_nav&amp;utm_source=douban&amp;utm_medium=pc_web\" target=\"_blank\" data-moreurl-dict=\"{&quot;from&quot;:&quot;top-nav-click-market&quot;,&quot;uid&quot;:&quot;0&quot;}\">豆品</a>\n",
      "    </li>\n",
      "  </ul>\n",
      "</div>\n",
      "\n",
      "  </div>\n",
      "</div>\n",
      "<script>\n",
      "  ;window._GLOBAL_NAV = {\n",
      "    DOUBAN_URL: \"https://www.douban.com\",\n",
      "    N_NEW_NOTIS: 0,\n",
      "    N_NEW_DOUMAIL: 0\n",
      "  };\n",
      "</script>\n",
      "\n",
      "\n",
      "\n",
      "    <script src=\"//img3.doubanio.com/dae/accounts/resources/1f8d15e/shire/bundle.js\" defer=\"defer\"></script>\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "    \n",
      "\n",
      "\n",
      "\n",
      "    <link href=\"//img3.doubanio.com/dae/accounts/resources/1f8d15e/movie/bundle.css\" rel=\"stylesheet\" type=\"text/css\">\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "<div id=\"db-nav-movie\" class=\"nav\">\n",
      "  <div class=\"nav-wrap\">\n",
      "  <div class=\"nav-primary\">\n",
      "    <div class=\"nav-logo\">\n",
      "      <a href=\"https:&#47;&#47;movie.douban.com\">豆瓣电影</a>\n",
      "    </div>\n",
      "    <div class=\"nav-search\">\n",
      "      <form action=\"https:&#47;&#47;search.douban.com&#47;movie/subject_search\" method=\"get\">\n",
      "        <fieldset>\n",
      "          <legend>搜索：</legend>\n",
      "          <label for=\"inp-query\">\n",
      "          </label>\n",
      "          <div class=\"inp\"><input id=\"inp-query\" name=\"search_text\" size=\"22\" maxlength=\"60\" placeholder=\"搜索电影、电视剧、综艺、影人\" value=\"\"></div>\n",
      "          <div class=\"inp-btn\"><input type=\"submit\" value=\"搜索\"></div>\n",
      "          <input type=\"hidden\" name=\"cat\" value=\"1002\" />\n",
      "        </fieldset>\n",
      "      </form>\n",
      "    </div>\n",
      "  </div>\n",
      "  </div>\n",
      "  <div class=\"nav-secondary\">\n",
      "    \n",
      "\n",
      "<div class=\"nav-items\">\n",
      "  <ul>\n",
      "    <li    ><a href=\"https://movie.douban.com/cinema/nowplaying/\"\n",
      "     >影讯&购票</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://movie.douban.com/explore\"\n",
      "     >选电影</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://movie.douban.com/tv/\"\n",
      "     >电视剧</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://movie.douban.com/chart\"\n",
      "     >排行榜</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://movie.douban.com/tag/\"\n",
      "     >分类</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://movie.douban.com/review/best/\"\n",
      "     >影评</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://movie.douban.com/annual/2019?source=navigation\"\n",
      "     >2019年度榜单</a>\n",
      "    </li>\n",
      "    <li    ><a href=\"https://m.douban.com/standbyme/annual2019?source=navigation\"\n",
      "            target=\"_blank\"\n",
      "     >2019书影音报告</a>\n",
      "    </li>\n",
      "  </ul>\n",
      "</div>\n",
      "\n",
      "    <a href=\"https://movie.douban.com/annual/2019?source=movie_navigation\" class=\"movieannual\"></a>\n",
      "  </div>\n",
      "</div>\n",
      "\n",
      "<script id=\"suggResult\" type=\"text/x-jquery-tmpl\">\n",
      "  <li data-link=\"{{= url}}\">\n",
      "            <a href=\"{{= url}}\" onclick=\"moreurl(this, {from:'movie_search_sugg', query:'{{= keyword }}', subject_id:'{{= id}}', i: '{{= index}}', type: '{{= type}}'})\">\n",
      "            <img src=\"{{= img}}\" width=\"40\" />\n",
      "            <p>\n",
      "                <em>{{= title}}</em>\n",
      "                {{if year}}\n",
      "                    <span>{{= year}}</span>\n",
      "                {{/if}}\n",
      "                {{if sub_title}}\n",
      "                    <br /><span>{{= sub_title}}</span>\n",
      "                {{/if}}\n",
      "                {{if address}}\n",
      "                    <br /><span>{{= address}}</span>\n",
      "                {{/if}}\n",
      "                {{if episode}}\n",
      "                    {{if episode==\"unknow\"}}\n",
      "                        <br /><span>集数未知</span>\n",
      "                    {{else}}\n",
      "                        <br /><span>共{{= episode}}集</span>\n",
      "                    {{/if}}\n",
      "                {{/if}}\n",
      "            </p>\n",
      "        </a>\n",
      "        </li>\n",
      "  </script>\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "    <script src=\"//img3.doubanio.com/dae/accounts/resources/1f8d15e/movie/bundle.js\" defer=\"defer\"></script>\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "    \n",
      "    <div id=\"wrapper\">\n",
      "        \n",
      "\n",
      "        \n",
      "    <div id=\"content\">\n",
      "        \n",
      "    <h1>豆瓣电影排行榜</h1>\n",
      "\n",
      "        <div class=\"grid-16-8 clearfix\">\n",
      "            \n",
      "            \n",
      "            <div class=\"article\">\n",
      "                \n",
      "    <h2>豆瓣新片榜   · · · · · · </h2>\n",
      "    <div class=\"indent\">\n",
      "        \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "<div class=\"\">\n",
      "    <p class=\"ul first\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/30314127/\"  title=\"惊天营救\">\n",
      "                        <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2593425210.jpg\" width=\"75\" alt=\"惊天营救\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/30314127/\"  class=\"\">\n",
      "                        惊天营救\n",
      "                        / <span style=\"font-size:13px;\">极限营救 / 达卡</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2020-04-24(美国) / 克里斯·海姆斯沃斯 / 大卫·哈伯 / 格什菲·法拉哈尼 / 德里克·卢克 / 兰迪普·弘达 / 克里斯·贾伊·阿历克斯 / 潘卡·特里帕蒂 / 马克·多纳托 / 海斯·威尔弗德 / 拉亚·坎普贝尔 / 鲁德赫拉什·贾斯瓦尔 / 普里延苏·潘尤利...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar35\"></span>\n",
      "                                <span class=\"rating_nums\">7.1</span>\n",
      "                                <span class=\"pl\">(34660人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_30314127\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/30211998/\"  title=\"绅士们\">\n",
      "                        <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2592522995.jpg\" width=\"75\" alt=\"绅士们\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/30211998/\"  class=\"\">\n",
      "                        绅士们\n",
      "                        / <span style=\"font-size:13px;\">疯狂绅士帮(港) / 绅士追杀令(台)</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2020-01-24(美国) / 马修·麦康纳 / 查理·汉纳姆 / 休·格兰特 / 亨利·戈尔丁 / 米歇尔·道克瑞 / 杰瑞米·斯特朗 / 科林·法瑞尔 / 汤姆·吴 / 琳·勒内 / 马克斯·班内特 / 布列塔尼·阿什沃思 / 伊川东吾 / 尤金娜·库日敏娜 / 乔丹·朗 / 杰森·王...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">8.3</span>\n",
      "                                <span class=\"pl\">(94715人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_30211998\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/33417030/\"  title=\"悲惨世界\">\n",
      "                        <img src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2592521688.jpg\" width=\"75\" alt=\"悲惨世界\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/33417030/\"  class=\"\">\n",
      "                        悲惨世界\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2019-05-15(戛纳电影节) / 2019-11-20(法国) / 达米安·勃纳尔 / 亚历克西斯·曼蒂 / 贾布里勒·宗加 / 伊萨·佩里卡 / 阿尔-哈桑·利 / 史蒂夫·蒂英楚 / 阿尔玛梅·卡诺特 / 尼扎·本·菲特玛 / 让娜·巴利巴尔 / 亚历山大·皮科特 / 罗曼·加夫拉斯...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">8.1</span>\n",
      "                                <span class=\"pl\">(29491人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_33417030\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/34603816/\"  title=\"温蒂妮\">\n",
      "                        <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2583558662.jpg\" width=\"75\" alt=\"温蒂妮\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/34603816/\"  class=\"\">\n",
      "                        温蒂妮\n",
      "                        / <span style=\"font-size:13px;\">乌丁娜 / 温蒂娜</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2020-02-23(柏林电影节) / 2020-03-26(德国) / 葆拉·贝尔 / 弗兰茨·罗戈夫斯基 / 玛丽安·扎瑞 / 雅各布·马琛茨 / 安妮·拉特-波利 / 拉斐尔·斯塔霍维亚克 / 格洛丽娅·安德雷斯·德·奥利维拉 / 德国 / 法国 / 克里斯蒂安·佩措尔德 / 90分钟...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">7.5</span>\n",
      "                                <span class=\"pl\">(6154人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_34603816\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/33411505/\"  title=\"从不，很少，有时，总是\">\n",
      "                        <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2588279882.jpg\" width=\"75\" alt=\"从不，很少，有时，总是\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/33411505/\"  class=\"\">\n",
      "                        从不，很少，有时，总是\n",
      "                        / <span style=\"font-size:13px;\">从不、很少、有时、总是 / 绝不、很少、有时、总是</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2020-01-24(圣丹斯电影节) / 2020-02-25(柏林电影节) / 2020-03-13(美国) / 茜德尼·弗拉尼根 / 塔莉娅·莱德 / 西奥多·佩尔兰 / 瑞安·艾戈尔德 / 莎伦·凡·艾腾 / 德鲁·塞尔策 / 美国 / www.focusfeatures.com/never-rarely-sometimes-always / 伊丽莎·希特曼...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">7.6</span>\n",
      "                                <span class=\"pl\">(19512人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_33411505\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/34960201/\"  title=\"列夫·朗道：娜塔莎\">\n",
      "                        <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2595207406.jpg\" width=\"75\" alt=\"列夫·朗道：娜塔莎\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/34960201/\"  class=\"\">\n",
      "                        列夫·朗道：娜塔莎\n",
      "                        / <span style=\"font-size:13px;\">Дау. Наташа</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2020-02-26(柏林电影节) / 2020-04-16(网络发行) / 纳塔利娅·别列日纳娅 / 吕克·比热 / 德国 / 乌克兰 / 英国 / 俄罗斯 / 叶卡特琳娜·奥特尔 / 伊利亚·赫尔扎诺夫斯基 / 145分钟 / 列夫·朗道：娜塔莎 / 剧情 / 伊利亚·赫尔扎诺夫斯基 Ilya Khrzhanovsky...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar30\"></span>\n",
      "                                <span class=\"rating_nums\">6.4</span>\n",
      "                                <span class=\"pl\">(4934人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_34960201\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/34805219/\"  title=\"饥饿站台\">\n",
      "                        <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2566870171.jpg\" width=\"75\" alt=\"饥饿站台\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/34805219/\"  class=\"\">\n",
      "                        饥饿站台\n",
      "                        / <span style=\"font-size:13px;\">饥饿斗室(港) / 绝命大平台(台)</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2019-09-06(多伦多电影节) / 2019-11-08(西班牙) / 伊万·马萨戈 / 佐里昂·伊圭里奥尔 / 安东尼亚·圣胡安 / 埃米利奥·布阿勒 / 亚历山德拉·玛桑凯 / 马里奥·帕尔多 / 阿尔吉斯·阿洛斯卡斯 / 米莉安·马丁 / 西班牙 / elhoyolapelicula.com / 加尔德·加兹特鲁·乌鲁蒂亚...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">7.8</span>\n",
      "                                <span class=\"pl\">(176767人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_34805219\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/30310218/\"  title=\"标准之外\">\n",
      "                        <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2556765966.jpg\" width=\"75\" alt=\"标准之外\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/30310218/\"  class=\"\">\n",
      "                        标准之外\n",
      "                        / <span style=\"font-size:13px;\">特殊人生(港) / 在你身边(台)</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2019-05-25(戛纳电影节) / 2019-10-23(法国) / 文森特·卡索 / 勒达·卡代布 / 海伦·文森特 / 阿尔班·伊万诺夫 / 凯瑟琳·蒙切特 / 弗雷德里克·皮耶罗 / 苏丽安·卜拉欣 / 琳娜·库德里 / 阿罗伊斯·索维奇 / 海迪·布奇纳法 / Benjamin Lesieur / Diong-Kéba...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">8.3</span>\n",
      "                                <span class=\"pl\">(5104人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_30310218\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/30257175/\"  title=\"燃烧女子的肖像\">\n",
      "                        <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2584308261.jpg\" width=\"75\" alt=\"燃烧女子的肖像\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/30257175/\"  class=\"\">\n",
      "                        燃烧女子的肖像\n",
      "                        / <span style=\"font-size:13px;\">浴火的少女画像(港) / 燃烧女子的画像(台)</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2019-05-19(戛纳电影节) / 2019-09-18(法国) / 诺米·梅兰特 / 阿黛拉·哈内尔 / 卢安娜·巴杰拉米 / 瓦莱丽亚·戈利诺 / 阿曼德·博兰格 / 米歇尔·克莱门特 / 法国 / www.portraitmovie.com / 瑟琳·席安玛 / 120分钟 / 燃烧女子的肖像 / 剧情 / 历史 /...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar45\"></span>\n",
      "                                <span class=\"rating_nums\">8.6</span>\n",
      "                                <span class=\"pl\">(85562人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_30257175\"></div>\n",
      "    <p class=\"ul\"></p>\n",
      "    <table width=\"100%\" class=\"\">\n",
      "        <tr class=\"item\">\n",
      "            <td width=\"100\" valign=\"top\">\n",
      "                \n",
      "\n",
      "                    <a class=\"nbg\" href=\"https://movie.douban.com/subject/30401849/\"  title=\"1/2的魔法\">\n",
      "                        <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2575243691.jpg\" width=\"75\" alt=\"1/2的魔法\" class=\"\"/>\n",
      "                    </a>\n",
      "            </td>\n",
      "\n",
      "            <td valign=\"top\">\n",
      "                \n",
      "\n",
      "                <div class=\"pl2\">\n",
      "\n",
      "                    <a href=\"https://movie.douban.com/subject/30401849/\"  class=\"\">\n",
      "                        1/2的魔法\n",
      "                        / <span style=\"font-size:13px;\">二分之一的魔法 / 魔法环游记</span>\n",
      "                    </a>\n",
      "\n",
      "\n",
      "\n",
      "                    <p class=\"pl\">2020-02-21(柏林电影节) / 2020-03-06(美国) / 汤姆·赫兰德 / 克里斯·帕拉特 / 茱莉亚·路易斯-德瑞弗斯 / 奥克塔维亚·斯宾瑟 / 梅尔·罗德里格斯 / 凯尔·柏海莫 / 丽娜·维特 / 黄阿丽 / 格蕾·德丽斯勒 / 崔茜·尤玛 / 维尔摩·瓦尔德拉玛...</p>\n",
      "\n",
      "                    \n",
      "\n",
      "\n",
      "                        \n",
      "                        <div class=\"star clearfix\">\n",
      "                                <span class=\"allstar40\"></span>\n",
      "                                <span class=\"rating_nums\">7.9</span>\n",
      "                                <span class=\"pl\">(22279人评价)</span>\n",
      "\n",
      "                        </div>\n",
      "\n",
      "\n",
      "                </div>\n",
      "\n",
      "            </td>\n",
      "        </tr>\n",
      "    </table>\n",
      "    <div id=\"collect_form_30401849\"></div>\n",
      "</div>\n",
      "\n",
      "\n",
      "    </div>\n",
      "    \n",
      "\n",
      "            </div>\n",
      "            <div class=\"aside\">\n",
      "                \n",
      "    \n",
      "  \n",
      "  <div>\n",
      "      <h2>分类排行榜 · · · · · ·<img style=\" position: absolute;\" src=\"https://img3.doubanio.com/f/shire/e49eca1517424a941871a2667a8957fd6c72d632/pics/new_menu.gif\"></h2>\n",
      "      <div class=\"types\">\n",
      "          <span><a href=\"/typerank?type_name=剧情&type=11&interval_id=100:90&action=\">剧情</a></span>\n",
      "          <span><a href=\"/typerank?type_name=喜剧&type=24&interval_id=100:90&action=\">喜剧</a></span>\n",
      "          <span><a href=\"/typerank?type_name=动作&type=5&interval_id=100:90&action=\">动作</a></span>\n",
      "          <span><a href=\"/typerank?type_name=爱情&type=13&interval_id=100:90&action=\">爱情</a></span>\n",
      "          <span><a href=\"/typerank?type_name=科幻&type=17&interval_id=100:90&action=\">科幻</a></span>\n",
      "          <span><a href=\"/typerank?type_name=动画&type=25&interval_id=100:90&action=\">动画</a></span>\n",
      "          <span><a href=\"/typerank?type_name=悬疑&type=10&interval_id=100:90&action=\">悬疑</a></span>\n",
      "          <span><a href=\"/typerank?type_name=惊悚&type=19&interval_id=100:90&action=\">惊悚</a></span>\n",
      "          <span><a href=\"/typerank?type_name=恐怖&type=20&interval_id=100:90&action=\">恐怖</a></span>\n",
      "          <span><a href=\"/typerank?type_name=纪录片&type=1&interval_id=100:90&action=\">纪录片</a></span>\n",
      "          <span><a href=\"/typerank?type_name=短片&type=23&interval_id=100:90&action=\">短片</a></span>\n",
      "          <span><a href=\"/typerank?type_name=情色&type=6&interval_id=100:90&action=\">情色</a></span>\n",
      "          <span><a href=\"/typerank?type_name=同性&type=26&interval_id=100:90&action=\">同性</a></span>\n",
      "          <span><a href=\"/typerank?type_name=音乐&type=14&interval_id=100:90&action=\">音乐</a></span>\n",
      "          <span><a href=\"/typerank?type_name=歌舞&type=7&interval_id=100:90&action=\">歌舞</a></span>\n",
      "          <span><a href=\"/typerank?type_name=家庭&type=28&interval_id=100:90&action=\">家庭</a></span>\n",
      "          <span><a href=\"/typerank?type_name=儿童&type=8&interval_id=100:90&action=\">儿童</a></span>\n",
      "          <span><a href=\"/typerank?type_name=传记&type=2&interval_id=100:90&action=\">传记</a></span>\n",
      "          <span><a href=\"/typerank?type_name=历史&type=4&interval_id=100:90&action=\">历史</a></span>\n",
      "          <span><a href=\"/typerank?type_name=战争&type=22&interval_id=100:90&action=\">战争</a></span>\n",
      "          <span><a href=\"/typerank?type_name=犯罪&type=3&interval_id=100:90&action=\">犯罪</a></span>\n",
      "          <span><a href=\"/typerank?type_name=西部&type=27&interval_id=100:90&action=\">西部</a></span>\n",
      "          <span><a href=\"/typerank?type_name=奇幻&type=16&interval_id=100:90&action=\">奇幻</a></span>\n",
      "          <span><a href=\"/typerank?type_name=冒险&type=15&interval_id=100:90&action=\">冒险</a></span>\n",
      "          <span><a href=\"/typerank?type_name=灾难&type=12&interval_id=100:90&action=\">灾难</a></span>\n",
      "          <span><a href=\"/typerank?type_name=武侠&type=29&interval_id=100:90&action=\">武侠</a></span>\n",
      "          <span><a href=\"/typerank?type_name=古装&type=30&interval_id=100:90&action=\">古装</a></span>\n",
      "          <span><a href=\"/typerank?type_name=运动&type=18&interval_id=100:90&action=\">运动</a></span>\n",
      "          <span><a href=\"/typerank?type_name=黑色电影&type=31&interval_id=100:90&action=\">黑色电影</a></span>\n",
      "      </div>\n",
      "  </div>\n",
      "\n",
      "    <!-- douban ad begin -->\n",
      "    <div id=\"dale_movie_chart_top_right\"></div>\n",
      "    <!-- douban ad end -->\n",
      "\n",
      "    \n",
      "    <div class=\"movie_top\" id=\"ranking\">\n",
      "    <div class=\"movie_top\" id=\"ranking\">\n",
      "        \n",
      "    \n",
      "    \n",
      "    <h2>一周口碑榜· · · · · · <span class=\"box_chart_num color-gray\">5月1日 更新</span></h2>\n",
      "    <ul class=\"content\" id=\"listCont2\">\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">1</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/30310218/\" class=\"\">\n",
      "                    标准之外\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"stay\">0</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">2</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/30410114/\" class=\"\">\n",
      "                    给我翅膀\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"up\">9</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">3</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/34680793/\" class=\"\">\n",
      "                    塔可夫斯基：在电影中祈祷\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"up\">8</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">4</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/34875369/\" class=\"\">\n",
      "                    7号房的礼物(土耳其版)\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"down\">2</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">5</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/34608294/\" class=\"\">\n",
      "                    再见，妈妈\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"down\">2</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">6</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/26923111/\" class=\"\">\n",
      "                    必是天堂\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"stay\">0</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">7</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/34603816/\" class=\"\">\n",
      "                    温蒂妮\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"stay\">0</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">8</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/34955843/\" class=\"\">\n",
      "                    真雄起\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"up\">3</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">9</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/30452121/\" class=\"\">\n",
      "                    头痛欲裂\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"up\">2</div>\n",
      "            </span>\n",
      "        </li>\n",
      "        <li class=\"clearfix\">\n",
      "            <div class=\"no\">10</div>\n",
      "            <div class=\"name\">\n",
      "                <a onclick=\"moreurl(this, {from:'mv_week'})\" href=\"https://movie.douban.com/subject/30314127/\" class=\"\">\n",
      "                    惊天营救\n",
      "                </a>\n",
      "            </div>\n",
      "            <span class=\"\">\n",
      "                    <div class=\"up\">1</div>\n",
      "            </span>\n",
      "        </li>\n",
      "    </ul>\n",
      "\n",
      "    </div>\n",
      "\n",
      "    <div class=\"movie_top\" id=\"ranking\">\n",
      "        \n",
      "    \n",
      "    <h2>北美票房榜· · · · · · <span class=\"box_chart_num color-gray\">3月13日 更新 / 美元</span></h2>\n",
      "    <ul class=\"content\" id=\"listCont1\">\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">1</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/30401849/\" class=\"\">\n",
      "                            1/2的魔法\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">1053万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">2</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/34802738/\" class=\"\">\n",
      "                            我仍然相信\n",
      "                        </a>\n",
      "                                <img src=\"https://img3.doubanio.com/f/shire/267048ed5190c4c6b513c2e559cae7ae8b8f0af5/pics/box_new.png\" />\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">950万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">3</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/4830483/\" class=\"\">\n",
      "                            喋血战士\n",
      "                        </a>\n",
      "                                <img src=\"https://img3.doubanio.com/f/shire/267048ed5190c4c6b513c2e559cae7ae8b8f0af5/pics/box_new.png\" />\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">930万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">4</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/2364086/\" class=\"\">\n",
      "                            隐形人\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">600万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">5</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/30182726/\" class=\"\">\n",
      "                            狩猎\n",
      "                        </a>\n",
      "                                <img src=\"https://img3.doubanio.com/f/shire/267048ed5190c4c6b513c2e559cae7ae8b8f0af5/pics/box_new.png\" />\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">532万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">6</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/25905044/\" class=\"\">\n",
      "                            刺猬索尼克\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">258万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">7</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/30345227/\" class=\"\">\n",
      "                            回归之路\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">242万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">8</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/27199324/\" class=\"\">\n",
      "                            野性的呼唤\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">224万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">9</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/30361878/\" class=\"\">\n",
      "                            爱玛\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">137万</span>\n",
      "                </li>\n",
      "            \n",
      "                <li class=\"clearfix\">\n",
      "                    <div class=\"no\">10</div>\n",
      "                    <div class=\"box_chart\">\n",
      "                        <a onclick=\"moreurl(this, {from:'mv_us_week'})\" href=\"https://movie.douban.com/subject/4014397/\" class=\"\">\n",
      "                            绝地战警：疾速追击\n",
      "                        </a>\n",
      "                    </div>\n",
      "                    <span class=\"box_chart_num color-gray\">110万</span>\n",
      "                </li>\n",
      "    </ul>\n",
      "\n",
      "    </div>\n",
      "\n",
      "    <!-- douban ad begin -->\n",
      "    \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "<div class=\"mobile-app-entrance block5 app-movie\">\n",
      "    <a class=\"entrance-link\" href=\"https://www.douban.com/doubanapp/frodo\">\n",
      "        <div class=\"entrance-qrcode\">\n",
      "            <img src=\"https://img3.doubanio.com/f/movie/a02f6ed325fc52e220f299d51e730c422e2bcd16/pics/movie/douban_app_ad/qrcode.png\" alt=\"扫码下载豆瓣 App\" width=\"80\" height=\"80\" />\n",
      "        </div>\n",
      "        <div class=\"entrance-info\">\n",
      "            <span class=\"app-icon icon-movie\"></span>\n",
      "            <span class=\"main-title\">豆瓣</span>\n",
      "            <span class=\"sub-title\">你的移动观影指南</span>\n",
      "        </div>\n",
      "    </a>\n",
      "</div>\n",
      "\n",
      "    <!-- douban ad end -->\n",
      "\n",
      "        <div class=\"indent\">\n",
      "            \n",
      "    <div id=\"douban-top250\">\n",
      "        <div class=\"douban-top250-hd\">\n",
      "            <h2>豆瓣电影TOP250\n",
      "                <span>\n",
      "                    <a href=\"https://movie.douban.com/top250\">全部&nbsp;</a>\n",
      "                </span>\n",
      "            </h2>\n",
      "        </div>\n",
      "        <div class=\"douban-top250-bd\">\n",
      "            \n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1302467/?from=top250\">\n",
      "                    <img src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p443461818.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1302467/?from=top250\" class=\"\">\n",
      "                    黑客帝国3：矩阵革命\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/5964718/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2189835254.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/5964718/?from=top250\" class=\"\">\n",
      "                    一次别离\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/3592854/?from=top250\">\n",
      "                    <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2236181653.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/3592854/?from=top250\" class=\"\">\n",
      "                    疯狂的麦克斯4：狂暴之路\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "            <div class=\"clearfix rr\" style=\"width:100%\"></div>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/2353023/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2210954024.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/2353023/?from=top250\" class=\"\">\n",
      "                    驯龙高手\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/26614893/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2522331945.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/26614893/?from=top250\" class=\"\">\n",
      "                    完美陌生人\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1293544/?from=top250\">\n",
      "                    <img src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p1593414327.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1293544/?from=top250\" class=\"\">\n",
      "                    沉默的羔羊\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "            <div class=\"clearfix rr\" style=\"width:100%\"></div>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1308857/?from=top250\">\n",
      "                    <img src=\"https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2414771522.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1308857/?from=top250\" class=\"\">\n",
      "                    可可西里\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/21360417/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2016930906.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/21360417/?from=top250\" class=\"\">\n",
      "                    恐怖直播\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1297447/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2414157745.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1297447/?from=top250\" class=\"\">\n",
      "                    倩女幽魂\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "            <div class=\"clearfix rr\" style=\"width:100%\"></div>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1297630/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2220184425.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1297630/?from=top250\" class=\"\">\n",
      "                    第六感\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/3319755/?from=top250\">\n",
      "                    <img src=\"https://img1.doubanio.com/view/photo/s_ratio_poster/public/p501177648.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/3319755/?from=top250\" class=\"\">\n",
      "                    怦然心动\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "        <dl class=\"\">\n",
      "            <dt>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1308767/?from=top250\">\n",
      "                    <img src=\"https://img9.doubanio.com/view/photo/s_ratio_poster/public/p667644866.jpg\" class=\"m_sub_img\"/>\n",
      "                </a>\n",
      "            </dt>\n",
      "            <dd>\n",
      "                <a onclick=\"moreurl(this, {from:'mv_tops'})\" href=\"https://movie.douban.com/subject/1308767/?from=top250\" class=\"\">\n",
      "                    谍影重重2\n",
      "                </a>\n",
      "                <span class=\"gact\"></span><br/>\n",
      "            </dd>\n",
      "        </dl>\n",
      "            <div class=\"clearfix rr\" style=\"width:100%\"></div>\n",
      "\n",
      "        </div>\n",
      "    </div>\n",
      "    \n",
      "\n",
      "        </div>\n",
      "    </div>\n",
      "\n",
      "            </div>\n",
      "            <div class=\"extra\">\n",
      "                \n",
      "    <!-- douban ad begin -->\n",
      "    <div id=\"dale_movie_chart_bottom_banner\"></div>\n",
      "    <!-- douban ad end -->\n",
      "\n",
      "            </div>\n",
      "        </div>\n",
      "    </div>\n",
      "\n",
      "        \n",
      "    <div id=\"footer\">\n",
      "            <div class=\"footer-extra\"></div>\n",
      "        \n",
      "<span id=\"icp\" class=\"fleft gray-link\">\n",
      "    &copy; 2005－2020 douban.com, all rights reserved 北京豆网科技有限公司\n",
      "</span>\n",
      "\n",
      "<a href=\"https://www.douban.com/hnypt/variformcyst.py\" style=\"display: none;\"></a>\n",
      "\n",
      "<span class=\"fright\">\n",
      "    <a href=\"https://www.douban.com/about\">关于豆瓣</a>\n",
      "    · <a href=\"https://www.douban.com/jobs\">在豆瓣工作</a>\n",
      "    · <a href=\"https://www.douban.com/about?topic=contactus\">联系我们</a>\n",
      "    · <a href=\"https://www.douban.com/about/legal\">法律声明</a>\n",
      "    \n",
      "    · <a href=\"https://help.douban.com/?app=movie\" target=\"_blank\">帮助中心</a>\n",
      "    · <a href=\"https://www.douban.com/doubanapp/\">移动应用</a>\n",
      "    · <a href=\"https://www.douban.com/partner/\">豆瓣广告</a>\n",
      "</span>\n",
      "\n",
      "    </div>\n",
      "\n",
      "    </div>\n",
      "    <!-- COLLECTED JS -->\n",
      "        \n",
      "        \n",
      "    <link rel=\"stylesheet\" type=\"text/css\" href=\"https://img3.doubanio.com/f/shire/8377b9498330a2e6f056d863987cc7a37eb4d486/css/ui/dialog.css\" />\n",
      "    <link rel=\"stylesheet\" type=\"text/css\" href=\"https://img3.doubanio.com/f/movie/4aca95d66d37ec0712b3d19973b5d8feb75f2f05/css/movie/mod/reg_login_pop.css\" />\n",
      "    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/77323ae72a612bba8b65f845491513ff3329b1bb/js/do.js\" data-cfg-autoload=\"false\"></script>\n",
      "    <script type=\"text/javascript\" src=\"https://img3.doubanio.com/f/shire/383a6e43f2108dc69e3ff2681bc4dc6c72a5ffb0/js/ui/dialog.js\"></script>\n",
      "    <script type=\"text/javascript\">\n",
      "        var HTTPS_DB='https://www.douban.com';\n",
      "var account_pop={open:function(o,e){e?referrer=\"?referrer=\"+encodeURIComponent(e):referrer=\"?referrer=\"+window.location.href;var n=\"\",i=\"\",t=448;n=\"用户登录\",i=\"https://accounts.douban.com/passport/login_popup?source=movie\";var r=document.location.protocol+\"//\"+document.location.hostname,a=dui.Dialog({width:340,title:n,height:t,cls:\"account_pop\",isHideTitle:!0,modal:!0,content:\"<iframe scrolling='no' frameborder='0' width='340' height='\"+t+\"' src='\"+i+\"' name='\"+r+\"'></iframe>\"},!0),c=a.node;if(c.undelegate(),c.delegate(\".dui-dialog-close\",\"click\",function(){var o=$(\"body\");o.find(\"#login_msk\").hide(),o.find(\".account_pop\").remove()}),$(window).width()<478){var d=\"\";\"reg\"===o?d=HTTPS_DB+\"/accounts/register\"+referrer:\"login\"===o&&(d=HTTPS_DB+\"/accounts/login\"+referrer),window.location.href=d}else a.open();$(window).bind(\"message\",function(o){\"https://accounts.douban.com\"===o.originalEvent.origin&&(c.find(\"iframe\").css(\"height\",o.originalEvent.data),c.height(o.originalEvent.data),a.update())})}};Douban&&Douban.init_show_login&&(Douban.init_show_login=function(o){var e=$(o);e.click(function(){var o=e.data(\"ref\")||\"\";return account_pop.open(\"login\",o),!1})}),Do(function(){$(\"body\").delegate(\".pop_register\",\"click\",function(o){o.preventDefault();var e=$(this).data(\"ref\")||\"\";return account_pop.open(\"reg\",e),!1}),$(\"body\").delegate(\".pop_login\",\"click\",function(o){o.preventDefault();var e=$(this).data(\"ref\")||\"\";return account_pop.open(\"login\",e),!1})});\n",
      "    </script>\n",
      "\n",
      "    \n",
      "    <!-- douban ad begin -->\n",
      "    \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "    \n",
      "<script type=\"text/javascript\">\n",
      "    (function (global) {\n",
      "        var newNode = global.document.createElement('script'),\n",
      "            existingNode = global.document.getElementsByTagName('script')[0],\n",
      "            adSource = '//erebor.douban.com/',\n",
      "            userId = '',\n",
      "            browserId = '682qeAJ5lwY',\n",
      "            criteria = '3:/chart',\n",
      "            preview = '',\n",
      "            debug = false,\n",
      "            adSlots = ['dale_movie_chart_top_right', 'dale_movie_chart_bottom_banner'];\n",
      "\n",
      "        global.DoubanAdRequest = {src: adSource, uid: userId, bid: browserId, crtr: criteria, prv: preview, debug: debug};\n",
      "        global.DoubanAdSlots = (global.DoubanAdSlots || []).concat(adSlots);\n",
      "\n",
      "        newNode.setAttribute('type', 'text/javascript');\n",
      "        newNode.setAttribute('src', '//img1.doubanio.com/MjdoZ3B1OC9mL2FkanMvOGFjYzUwMTRmMmUwMjBmMWRmYjI0NzAyNjVkNTE1ODJlMzY2NDQxNS9hZC5yZWxlYXNlLmpz');\n",
      "        newNode.setAttribute('async', true);\n",
      "        existingNode.parentNode.insertBefore(newNode, existingNode);\n",
      "    })(this);\n",
      "</script>\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "    <!-- douban ad end -->\n",
      "\n",
      "    \n",
      "  \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "<script type=\"text/javascript\">\n",
      "var _paq = _paq || [];\n",
      "_paq.push(['trackPageView']);\n",
      "_paq.push(['enableLinkTracking']);\n",
      "(function() {\n",
      "    var p=(('https:' == document.location.protocol) ? 'https' : 'http'), u=p+'://fundin.douban.com/';\n",
      "    _paq.push(['setTrackerUrl', u+'piwik']);\n",
      "    _paq.push(['setSiteId', '100001']);\n",
      "    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n",
      "    g.type='text/javascript';\n",
      "    g.defer=true;\n",
      "    g.async=true;\n",
      "    g.src=p+'://img3.doubanio.com/dae/fundin/piwik.js';\n",
      "    s.parentNode.insertBefore(g,s);\n",
      "})();\n",
      "</script>\n",
      "\n",
      "<script type=\"text/javascript\">\n",
      "var setMethodWithNs = function(namespace) {\n",
      "  var ns = namespace ? namespace + '.' : ''\n",
      "    , fn = function(string) {\n",
      "        if(!ns) {return string}\n",
      "        return ns + string\n",
      "      }\n",
      "  return fn\n",
      "}\n",
      "\n",
      "var gaWithNamespace = function(fn, namespace) {\n",
      "  var method = setMethodWithNs(namespace)\n",
      "  fn.call(this, method)\n",
      "}\n",
      "\n",
      "var _gaq = _gaq || []\n",
      "  , accounts = [\n",
      "      { id: 'UA-7019765-1', namespace: 'douban' }\n",
      "    , { id: 'UA-7019765-19', namespace: '' }\n",
      "    ]\n",
      "  , gaInit = function(account) {\n",
      "      gaWithNamespace(function(method) {\n",
      "        gaInitFn.call(this, method, account)\n",
      "      }, account.namespace)\n",
      "    }\n",
      "  , gaInitFn = function(method, account) {\n",
      "      _gaq.push([method('_setAccount'), account.id]);\n",
      "      _gaq.push([method('_setSampleRate'), '5']);\n",
      "\n",
      "      \n",
      "  _gaq.push([method('_addOrganic'), 'google', 'q'])\n",
      "  _gaq.push([method('_addOrganic'), 'baidu', 'wd'])\n",
      "  _gaq.push([method('_addOrganic'), 'soso', 'w'])\n",
      "  _gaq.push([method('_addOrganic'), 'youdao', 'q'])\n",
      "  _gaq.push([method('_addOrganic'), 'so.360.cn', 'q'])\n",
      "  _gaq.push([method('_addOrganic'), 'sogou', 'query'])\n",
      "  if (account.namespace) {\n",
      "    _gaq.push([method('_addIgnoredOrganic'), '豆瓣'])\n",
      "    _gaq.push([method('_addIgnoredOrganic'), 'douban'])\n",
      "    _gaq.push([method('_addIgnoredOrganic'), '豆瓣网'])\n",
      "    _gaq.push([method('_addIgnoredOrganic'), 'www.douban.com'])\n",
      "  }\n",
      "\n",
      "      if (account.namespace === 'douban') {\n",
      "        _gaq.push([method('_setDomainName'), '.douban.com'])\n",
      "      }\n",
      "\n",
      "        _gaq.push([method('_setCustomVar'), 1, 'responsive_view_mode', 'desktop', 3])\n",
      "\n",
      "        _gaq.push([method('_setCustomVar'), 2, 'login_status', '0', 2]);\n",
      "\n",
      "      _gaq.push([method('_trackPageview')])\n",
      "    }\n",
      "\n",
      "for(var i = 0, l = accounts.length; i < l; i++) {\n",
      "  var account = accounts[i]\n",
      "  gaInit(account)\n",
      "}\n",
      "\n",
      "\n",
      ";(function() {\n",
      "    var ga = document.createElement('script');\n",
      "    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n",
      "    ga.setAttribute('async', 'true');\n",
      "    document.documentElement.firstChild.appendChild(ga);\n",
      "})()\n",
      "</script>\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "      \n",
      "    \n",
      "\n",
      "    <!-- dae-web-movie--default-59779857d7-qwcqj-->\n",
      "\n",
      "  <script>_SPLITTEST=''</script>\n",
      "</body>\n",
      "\n",
      "</html>\n",
      "\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "import requests\n",
    "import re\n",
    "pr={\n",
    "    'http':''\n",
    "}\n",
    "url='https://movie.douban.com/chart'\n",
    "header={\n",
    "    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3722.400 QQBrowser/10.5.3751.400'\n",
    "}\n",
    "res=requests.get(url=url,headers=header)\n",
    "res.encoding='utf-8'\n",
    "print(res.text)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "url='movie.douban.com/chart'\n",
    "res=requests.get(url=url)\n",
    "print(res.text)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests\n",
    "import re\n",
    "import pymysql\n",
    "class connsql():\n",
    "    def __init__(self):\n",
    "        self.conn=pymysql.connect(host='127.0.0.1',user='root',password='1234',database='myschool',charset='gbk')\n",
    "\n",
    "header={\n",
    "    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Safari/537.36 Core/1.70.3722.400 QQBrowser/10.5.3751.400'\n",
    "}\n",
    "\n",
    "conn=connsql()\n",
    "conn=conn.conn\n",
    "cursor=conn.cursor()\n",
    "\n",
    "# for i in range(10):\n",
    "#     j=0\n",
    "#     j+=j\n",
    "#     url='https://movie.douban.com/review/best/?start=%s'%j\n",
    "#     j=j+20\n",
    "#     res=requests.get(url=url,headers=header)\n",
    "#     res.encoding='utf-8'\n",
    "#     html=res.text\n",
    "#     res=re.findall('<a.*?class=\"name\">(.*?),</a>.*?title=\"(.*?)\"></span>',html,re.S)\n",
    "#     for res in  res:\n",
    "#         print(res)\n",
    "    \n",
    "#         sql='insert doubid(name,res) values(\"%s\",\"%s\")'%(res[0],res[1])\n",
    "#         res=cursor.execute(sql)\n",
    "#         conn.commit()\n",
    "\n",
    "   \n",
    "url='https://movie.douban.com/review/best/?start=0'\n",
    "    \n",
    "  \n",
    "res=requests.get(url=url,headers=header)\n",
    "res.encoding='utf-8'\n",
    "html=res.text\n",
    "res=re.findall('<a.*?class=\"name\">(.*?),</a>.*?title=\"(.*?)\"></span>',html,re.S)\n",
    "for res in  res:\n",
    "    print(res)\n",
    "    \n",
    "    sql='insert doubid(name,res) values(\"%s\",\"%s\")'%(res[0],res[1])\n",
    "    res=cursor.execute(sql)\n",
    "    conn.commit()\n",
    "    \n",
    "conn.close()\n",
    "cursor.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
